package com.ruoyi.project.poem.posterad.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 诗词广告位对象 poster_ad
 *
 * @author shixiangwen
 * @date 2021-07-14
 */
public class PosterAd extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String img;

    /**
     * 跳转类型
     */
    @Excel(name = "跳转类型")
    private Long targetType;

    /**
     * 广告链接
     */
    @Excel(name = "广告链接")
    private String link;

    /**
     * 小程序ID
     */
    @Excel(name = "小程序ID")
    private String minappId;

    /**
     * 小程序路径
     */
    @Excel(name = "小程序路径")
    private String minappPath;

    /**
     * 权重
     */
    @Excel(name = "权重")
    private Integer weight;

    /**
     * 是否上线
     */
    @Excel(name = "是否上线")
    private Integer status;

    /**
     * 创建用户
     */
    @Excel(name = "创建用户")
    private String createUser;

    /**
     * 广告位置
     */
    @Excel(name = "广告位置")
    private Long pos;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setTargetType(Long targetType) {
        this.targetType = targetType;
    }

    public Long getTargetType() {
        return targetType;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getLink() {
        return link;
    }

    public void setMinappId(String minappId) {
        this.minappId = minappId;
    }

    public String getMinappId() {
        return minappId;
    }

    public void setMinappPath(String minappPath) {
        this.minappPath = minappPath;
    }

    public String getMinappPath() {
        return minappPath;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setPos(Long pos) {
        this.pos = pos;
    }

    public Long getPos() {
        return pos;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("img", getImg())
                .append("targetType", getTargetType())
                .append("link", getLink())
                .append("minappId", getMinappId())
                .append("minappPath", getMinappPath())
                .append("weight", getWeight())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("createUser", getCreateUser())
                .append("pos", getPos())
                .toString();
    }
}
